﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Web.UI;
using DevExpress.Web.ASPxHeadline;
using DevExpress.Web.ASPxClasses;
using DevExpress.Web.ASPxCallback;

using LMD.Constant;
using LMD.Lib.DataClass;
using LMD.Lib.Interface;

public partial class CCReminder : ICPRelationshipPage
{
    public DataTable dtReminder;
    #region Properties
    
    #endregion Properties

    #region Event Handlers

    protected override void Page_Load(object sender, EventArgs e)
    {
        m_lsPermittedRoles.Add(ICPUserRole.CAR);
        base.Page_Load(sender, e);

        Page.Title = "ICP Lintasarta: Relationship, Courtesy Call - Reminder";
        if (!IsPostBack && !IsCallback)
        {
            pnlCCReminder.InnerHtml = InitReminder();
        }
    }
    
    #endregion Event Handlers

    #region Custom Methods
    protected override void DoSearch(String sxSearchQuery)
    {
        throw new NotImplementedException();
    }
    protected String InitReminder()
    {
        Cached.CourtesyCallTable cachedCC = new Cached.CourtesyCallTable();
        dtReminder = cachedCC.GetReminderList(true);
        return CCManager.BuildReminderLink(dtReminder, true);
    }
    #endregion Custom Methods
}
